treeview: default to width_changed = TRUE
authorTimm Bäder <mail@baedert.org>
Sat, 20 May 2017 12:18:11 +0000 (14:18 +0200)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 20 Jul 2017 01:27:13 +0000 (21:27 -0400)
Checking the given GtkAllocation against the current allocation insize
::size-allocate doesn't really work anymore. They are only different if
the content allocation (the one passed) and the widget allocation (the
current one) are different, so e.g. when the widget has padding >0
applied.

gtk/gtktreeview.c

index b9af41bd746c3fa7213da84676a7337771f0b14d..21d10d6c4e4f345903eb67cdb9b5cbb1561b655b 100644 (file)
@@ -2602,7 +2602,7 @@ gtk_tree_view_size_allocate (GtkWidget     *widget,
 {
   GtkTreeView *tree_view = GTK_TREE_VIEW (widget);
   GList *tmp_list;
-  gboolean width_changed = FALSE;
+  gboolean width_changed = TRUE;
   gint old_width;
   double page_size;